@file:UseContextualSerialization(forClasses = [Any::class])

package com.ch.common.net

import kotlinx.serialization.Serializable
import kotlinx.serialization.UseContextualSerialization

/**
 * 网络请求返回数据基本框架
 *
 * @param errorCode 返回码
 * @param errorMsg 返回信息
 * @param data 请求返回数据
 */
@Serializable
data class NetResult<T>(
    val errorCode: Int = -1,
    val errorMsg: String? = "",
    val data: T? = null
)

